const prodRoot = 'https://tx.cufoon.com:8888';
const devRoot = '/api';

const root = process.env.NODE_ENV === 'production' ? prodRoot : devRoot;

export const urlLogin = `${root}/login`;
export const urlInstructorChoose = `${root}/student/instructor/choose`;
export const urlStudentInfoQuery = `${root}/student/baseInfo/query`;
export const urlStudentInfoEdit = `${root}/student/baseInfo/edit`;
export const urlStudentQueryTeacher = `${root}/student/instructor/query`;
export const urlDocument = `${root}/student/document/query`;
export const urlDocumentDefault = `${root}/student/document/editDefault`;
export const urlDocumentEdit = `${root}/student/document/edit`;
export const urlComInstructor = `${root}/student/comInstructor/query`;
export const urlTeacherInfoQuery = `${root}/teacher/info/query`;
export const urlTeacherInfoEdit = `${root}/teacher/info/edit`;
export const urlQueryStudent = `${root}/teacher/queryStudent`;
export const urlQueryAllStudents = `${root}/teacher/queryAllStudents`;
export const urlTeacherBrowseDocument = `${root}/teacher/document/browse`;
export const urlTeacherHandleDocument = `${root}/teacher/document/handle`;
export const urlInternshipInfoQuery = `${root}/student/internInfo/query`;
export const urlInternshipInfoEdit = `${root}/student/internInfo/edit`;
export const urlChangePassword = `${root}/changePassword`;
export const urlStudentApplyQuery = `${root}/teacher/apply/query`;
export const urlStudentApplyAccept = `${root}/teacher/apply/accept`;
export const urlStudentApplyReject = `${root}/teacher/apply/reject`;
export const urlGetRole = `${root}/role`;
export const urlLogout = `${root}/logout`;
export const urlAdminQuery = `${root}/admin/user/query`;
export const urlAdminAdd = `${root}/admin/user/increase`;
export const urlRelationQuery = `${root}/admin/relation/query`;
export const urlRelationAdd = `${root}/admin/relation/add`;
export const urlRelationDelete = `${root}/admin/relation/delete`;
export const urlScoreEnter = `${root}/admin/score/enter`;
export const urlStudentLookDocument = `${root}/student/document/look`;
export const urlStudentSaveDocument = `${root}/student/document/temporarySave`;
export const urlTeacherRejectDocument = `${root}/teacher/document/reject`;
export const urlAdminScore = `${root}/admin/score/query`;
export const urlAdminExcel = `${root}/admin/excelUpload`;
export const urlMessageListNotice = `${root}/message/query/2`;
export const urlMessageListRead = `${root}/message/query/1`;
export const urlMessageListToRead = `${root}/message/query/0`;
export const urlMessageRead = `${root}/message/read`;
export const urlAdminBan = `${root}/admin/user/ban`;
export const urlAdminStart = `${root}/admin/user/start`;
export const urlInternShipChange = `${root}/admin/editPeriod`;
export const urlAutoMessageList = `${root}/message/auto`;
export const urlMessageSend = `${root}/message/send`;
export const urlRecvsQuery = `${root}/message/recvs`;
export const urlAdminCount = `${root}/admin/count`;
export const urlAdminPeriodList = `${root}/admin/getPeriod`;
export const urlStudentUploadPng = `${root}/student/archive/upload`;
export const urlStudentUploadQuery = `${root}/student/archive/query`;
export const urlStudentCheckState = `${root}/student/internInfo/isPeriod`;
export const urlStudentExportPng = `${root}/student/api/excelDownload`;
